package com.shy.springframework.test.bean;

import java.util.Random;

public class UserService  implements IUserService{
    public String queryUserInfo(){
        try {
            Thread.sleep(new Random(1).nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "张三，100001，合肥";
    }

    public String register(String userName){
        try {
            Thread.sleep(new Random(1).nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "注册用户: " + userName + " success";
    }

}
